<template>
  <div class="swipercom">
    <van-swipe class="my-swipe"
     :autoplay="3000" 
     indicator-color="white">
      <van-swipe-item
      v-for="(item,index) in this.$store.state.swipem.linkdata " :key="index"
      >
      <img :src="item.img" alt="">
      </van-swipe-item>
      
    </van-swipe>
       
  </div>
</template>

<script>

export default {
  data() {
    return {
      
    };
  },
  computed:{
    newtext(){ 
      return  this.$store.state.swipem.linkdata             
   }
  },
  created() {
    this.$store.dispatch("LINK_DATA_BB");
    
      
  },
  
};
</script>

<style lang="scss" scoped>
.swipercom {
  padding: 0.4444rem 0.8333rem;
}
.my-swipe{
  border-radius: .8333rem;
}
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  background-color: #39a9ed;
  border-radius: 0.4444rem;
  height: 8.0556rem;
}
img{
  width: 100%;
 
}
</style>